.class final Lcom/estrongs/android/pop/app/filetransfer/FileTransferSendActivity$a;
.super Landroid/text/InputFilter$LengthFilter;
.source "FileTransferSendActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/filetransfer/FileTransferSendActivity;->a(Landroid/app/Activity;ZLjava/util/List;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field private a:J

.field final synthetic b:Landroid/app/Activity;


# direct methods
.method constructor <init>(ILandroid/app/Activity;)V
    .locals 0

    .line 1
    iput-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferSendActivity$a;->b:Landroid/app/Activity;

    invoke-direct {p0, p1}, Landroid/text/InputFilter$LengthFilter;-><init>(I)V

    const-wide/16 p1, 0x0

    .line 2
    iput-wide p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferSendActivity$a;->a:J

    return-void
.end method


# virtual methods
.method public filter(Ljava/lang/CharSequence;IILandroid/text/Spanned;II)Ljava/lang/CharSequence;
    .locals 3

    const/4 v0, 0x0

    .line 1
    invoke-interface {p4, v0, p5}, Landroid/text/Spanned;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object p5

    invoke-interface {p5}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p5

    invoke-virtual {p5}, Ljava/lang/String;->getBytes()[B

    move-result-object p5

    array-length p5, p5

    .line 2
    invoke-interface {p4}, Landroid/text/Spanned;->length()I

    move-result v1

    invoke-interface {p4, p6, v1}, Landroid/text/Spanned;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object p4

    invoke-interface {p4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p4

    invoke-virtual {p4}, Ljava/lang/String;->getBytes()[B

    move-result-object p4

    array-length p4, p4

    add-int/2addr p5, p4

    .line 3
    invoke-interface {p1, p2, p3}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object p4

    invoke-interface {p4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p4

    invoke-virtual {p4}, Ljava/lang/String;->getBytes()[B

    move-result-object p4

    array-length p4, p4

    const/16 p6, 0x12

    rsub-int/lit8 v1, p5, 0x12

    const-string v2, ""

    if-gtz v1, :cond_1

    .line 4
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p1

    .line 5
    iget-wide p3, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferSendActivity$a;->a:J

    sub-long p3, p1, p3

    const-wide/16 p5, 0x3e8

    cmp-long v1, p3, p5

    if-lez v1, :cond_0

    .line 6
    iget-object p3, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferSendActivity$a;->b:Landroid/app/Activity;

    const p4, 0x7f1106af

    invoke-virtual {p3, p4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p4

    invoke-static {p3, p4, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    .line 7
    iput-wide p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferSendActivity$a;->a:J

    :cond_0
    return-object v2

    :cond_1
    if-lt v1, p4, :cond_2

    const/4 p1, 0x0

    return-object p1

    :cond_2
    if-gt p3, p2, :cond_3

    return-object v2

    :cond_3
    :goto_0
    add-int/2addr p4, p5

    if-le p4, p6, :cond_5

    add-int/lit8 p3, p3, -0x1

    if-gt p3, p2, :cond_4

    return-object v2

    .line 8
    :cond_4
    invoke-interface {p1, p2, p3}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object p4

    invoke-interface {p4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p4

    invoke-virtual {p4}, Ljava/lang/String;->getBytes()[B

    move-result-object p4

    array-length p4, p4

    goto :goto_0

    .line 9
    :cond_5
    invoke-interface {p1, p2, p3}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object p1

    return-object p1
.end method
